var express = require('express');
var   router   = express.Router();
const dataCtrl = require('../controllers/cate.controller')


/* GET home page. */
router.post('/', dataCtrl.create);
router.put('/:id', dataCtrl.updata);
router.get('/:id', dataCtrl.get);
router.delete('/:id', dataCtrl.removeIt);
router.post('/list/:type', dataCtrl.list);

module.exports = router;